import { request } from '@umijs/max'

export const getWorks = () => {
  return request('https://blog.zusheng.cc/api/getWorks', {
    method: 'GET'
  })
}

export const getStaticWorks = () => {
  return request('https://blog.zusheng.cc/api/getWorksStatic', {
    method: 'GET'
  })
}

// 获取文章
export const getArticles = () => {
  return request('https://blog.zusheng.cc/api/articles', {
    method: 'GET'
  })
}

// 获取本机IP
export const getIP = () => {
  return request('http://localhost:3000/api/userOrigin', {
    method: 'GET'
  })
}
